#coding:utf-8
'''
Created on 2015��6��19��

@author: guowu
'''
from PyQt4.QtCore import QTime
import time
def createIpList():
    ipstr = "192.168.10."
    iplist = []
    for i in range(1,255):
        ipaddr = ipstr + str(i)
        iplist.append(ipaddr)
        
    return iplist


iplist = createIpList()

print "startbroadcast#" + "#".join(iplist)
        
hour = "%02d"%(QTime.currentTime().hour())
second = "%02d"%(QTime.currentTime().second())
minute = "%02d"%(QTime.currentTime().minute())
msec = "%03d"%(QTime.currentTime().msec())

timetemp = hour + minute+ second + msec

print timetemp

year = "%04d"%(time.localtime().tm_year)
mon = "%02d"%(time.localtime().tm_mon)
day = "%02d"%(time.localtime().tm_mday)
hour = "%02d"%(time.localtime().tm_hour)
second = "%02d"%(time.localtime().tm_sec)
minute = "%02d"%(time.localtime().tm_min)

timetemp = year + mon + day + hour + minute+ second

print timetemp


print "abc" + "%017d"%(41)